<?php
namespace App\Module\Pay\Controller;

use App\Common\Controller\AbstractController;
use App\Module\Pay\Request\ActivityRequest;
use App\Module\Pay\Service\ActivityService;
use Hyperf\Di\Annotation\Inject;

class PayController extends AbstractController{

    /**
     * @Inject()
     * @var ActivityService $activityService
     */
    private $activityService;

    public function activity(ActivityRequest $request){
        return $this->response->json($this->activityService->pay($request));
    }
}